package com.magicsoft.app.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author chenql
 *
 */

public class TransferCZYRecordEntity implements Parcelable{
	/**
	 * 时间
	 */
	String time;
	
	/**
	 * 日期
	 */
	String date;
	
	/**
	 * 标题
	 */
	String title;
	
	/**
	 * 金额
	 */
	String amount;
	
	/**
	 * 捎一句话
	 */
	String greetings;
	
	/**
	 * 订单号
	 */
	String sn;
	
	public TransferCZYRecordEntity() {
		time = "";
		date = "";
		title = "";
		amount = "";
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getGreetings() {
		return greetings;
	}

	public void setGreetings(String greetings) {
		this.greetings = greetings;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(time);
		dest.writeString(date);
		dest.writeString(title);
		dest.writeString(amount);
		dest.writeString(greetings);
		dest.writeString(sn);
	}
	
	private TransferCZYRecordEntity(Parcel in) {
		time = in.readString();
		date = in.readString();
		title = in.readString();
		amount = in.readString();
		greetings = in.readString();
		sn = in.readString();
	}
	
	public static final Creator<TransferCZYRecordEntity> CREATOR = new Creator<TransferCZYRecordEntity>() {

		@Override
		public TransferCZYRecordEntity createFromParcel(Parcel source) {
			return new TransferCZYRecordEntity(source);
		}

		@Override
		public TransferCZYRecordEntity[] newArray(int size) {
			return new TransferCZYRecordEntity[size];
		}
	};
}
